package com.xcf.service.business.common.ratiomanagement.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.common.ratiomanagement.RatioManagementService;
import com.xcf.util.PageData;
@Service("RatioManagementServiceImpl")
public class RatioManagementServiceImpl implements RatioManagementService{
	@Resource(name="daoSupport")
	private DaoSupport daosupport;

	//列表的查询
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> sear(PageData pd) throws Exception{
		
		return (List<PageData>) daosupport.findForList("ratiomanagementmapper.sear", pd);
	}

	//保存
	@Override
	public void save(PageData pd) throws Exception {
		daosupport.save("ratiomanagementmapper.save", pd);
		
	}

	//修改
	@Override
	public void update(PageData pd) throws Exception {
		daosupport.save("ratiomanagementmapper.update", pd);
		
	}

	//删除
	@Override
	public void delete(PageData pd) throws Exception {
		daosupport.delete("ratiomanagementmapper.delete", pd);
		
	}
}
